<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'change.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
<!--
.style1 {
	font-size: 12;
	color: #666666;}
	.style2 {
	font-size: small;
	color: #0099FF;}
	.style3 {
	font-size: 12;
	color: #003366;
	font-weight: bold}
	.style4 {
	font-size: 14;
	color: red;
	font-weight: bold}
-->
</style>
  </head>
  
  <body>
     <form action="main/ChangeServlet.do" method="post">
      <%String tableid=request.getParameter("tableid"); 
		session.setAttribute("tableid",tableid); 
  	%>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr>
    <td width="190">
    <span class="style1">管理员ID：</span>&nbsp;&nbsp;<span class="style3">${sessionScope.admid }</span><br><br><br> 
    <span class="style1">更换球桌ID：</span>&nbsp;&nbsp;<input name="changedtableid" maxlength="10" size="12"/><br><br><br>
	
	<input type="submit" name="submit" value="换桌"><br>
	</td>
	
    <td>
    	<div>
			<%
			String al=(String)request.getAttribute("errors");
			String al1=(String)request.getAttribute("starttime");
			String al2=(String)request.getAttribute("sparcost");
			if(al!=null){
				out.println("<span class='style4'><ul>");
				out.println("<li>" + al + "</li>");
				out.println("</ul></span>");
			}
			if(al1!=null){
				out.println("<span class='style4'><ul>");
				out.println("<li>" + al1 + "</li>");
				out.println("</ul></span>");
			}
			if(al2!=null){
				out.println("<span class='style4'><ul>");
				out.println("<li>" + al2 + "</li>");
				out.println("</ul></span>");
			}
			 %>
				
			</div>
    </td>
  </tr>
</table>
</form>
  </body>
</html>
